package com.ftwj.mapper;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ftwj.entity.SchoolPlaceInfo;
import com.ftwj.entity.SchoolRoomInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface SchoolRoomMapper {
    int insertSchoolRoomInfo(SchoolRoomInfo schoolRoomInfo);

    int updateSchoolRoomInfo(SchoolRoomInfo schoolRoomInfo);

    int updateSchoolRoomOpenState(SchoolRoomInfo schoolRoomInfo);

    int deleteSchoolRoomInfo(@Param("id") String id);

    IPage<Map<String ,Object>> selectSchoolRoomInfoByName(Page<Object>page,@Param("name") String name);
}
